package main

import (
	"elastalert2-webhook/router" // 替换elastalert2-webhook为你的模块名

	"github.com/gin-gonic/gin"
	"github.com/sirupsen/logrus"
)

func main() {
	// 初始化logrus
	logrus.SetFormatter(&logrus.TextFormatter{})
	logrus.SetReportCaller(true)

	r := gin.Default()
	router.SetupRoutes(r)
	r.Run(":8080")
}
